package cn.lbf.stuniversity.classroomequipment.dao;

import cn.lbf.stuniversity.classroomequipment.entity.ClassroomEquipment;
import cn.lbf.stuniversity.classroomequipment.form.ClassroomEquipmentAddForm;
import cn.lbf.stuniversity.classroomequipment.form.ClassroomEquipmentDetailForm;
import cn.lbf.stuniversity.classroomequipment.form.ClassroomEquipmentForm;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface ClassroomEquipmentDao {
    public List<ClassroomEquipment> selectAll();
    public List<ClassroomEquipment> selectClassByIdAndName(ClassroomEquipmentForm form);
    public long queryCount(ClassroomEquipmentForm form);
    public int deleteByUpdateId(String id);
    public int selectClassCountByIdAndName(Map<String, Object> map);
    public int addNew(ClassroomEquipmentAddForm form);
    public ClassroomEquipment selectById (String classroomEquipmentId);
    public int updateByClassroomEquipmentId(ClassroomEquipmentDetailForm form);
}
